<template>
    <div class="size" >
      
      <el-carousel height="500px" autoplay>
        <el-carousel-item style="height: 80vh" >
          <img src="https://fscl01.fonpit.de/userfiles/7687254/image/nextpit_Apple_Vision_Pro_2023.jpg" alt="only apple can do" 
          class="el-carousel__item img">
        </el-carousel-item>
        <el-carousel-item style="height: 500px">
          <h3 class="small justify-center" text="2xl">height 200px</h3>
        </el-carousel-item>
        <el-carousel-item style="height: 500px">
          <h3 class="small justify-center" text="2xl">height 300px</h3>
        </el-carousel-item>
      </el-carousel>
    </div>
  </template>
  
  <style scoped>
  .carousel-item {
    color: #475669;
    opacity: 0.75;
    margin: 0;
    text-align: center;
    height: 300px;
  }
  
  .el-carousel__item h3 {
    color: #475669;
    opacity: 0.75;
    display: flex;
    align-items: center;
    margin: 0;
    text-align: center;
    height: 300px;
  }
  
  .el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
  }
  
  .el-carousel__item:nth-child(2n + 1) {
    background-color: #d3dce6;
  }
  .el-carousel__item img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
}
.size{
  height: 5%;
  width: 70%;
  margin-left: 10vw;
  margin: auto;
  margin-top: 10px;
  margin-bottom: 10px;
}
  </style>
  